<template>
  <div>
      <h1>这是子aa的页面</h1>
      <button @click="fun1()">点击进行同胞传值</button>
  </div>
</template>

<script>
import eventBus from '@/eventBus/index.js'
export default {
  methods:{
        fun1(){
            eventBus.$emit('xiaoming','这是ziaa传给zibb的数据')
        }
    }
}
</script>

<style scoped>
h1{
    font-size:0.2rem
}
button{
  font-size:0.2rem
}
</style>